package com.version.manager.mapper;

import com.version.manager.entity.Menu;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface MenuMapper extends Mapper<Menu> {
    List<Menu> getMenuByRole(@Param("roleId") String roleId);

    List<Menu> selectAll();
    int deleteRoleMenu(@Param("roleId")String roleId);

    int addRoleMenu(@Param("roleId")String roleId, @Param("menuIds") List<Integer> menuIds);
}
